<nav class="breadcrumb" id="pathContainer">
    <i class="Hui-iconfont Hui-iconfont-weizhi"></i>
    <span>您的位置：</span>
    <span>扶贫主体管理</span>
    <span class="c-999 en">&gt;</span>
    <span class="c-primary">负责人维护帮扶单位</span>
</nav>
<div class="Hui-article mt-10" id="MainList">
    <!-- 查询模块 -->
    <div class="row cl searchBox">
        <form class="form form-horizontal responsive" id="searchForm" novalidate="novalidate">
            <div class="clearfix">
                <div class="conditionBox col-sm-2">
                    <label for="">单位名称:</label>
                    <input type="text" class="input-text radius" placeholder="请输入帮扶单位名称" name="unitName" id="unitName"/>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">责任人名称:</label>
                    <input type="text" class="input-text radius" placeholder="请输入帮扶责任人名称" name="name" id="name"/>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">证件号码:</label>
                    <input type="text" class="input-text radius" placeholder="请输入证件号码" name="idNumber" id="idNumber"/>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">联系电话:</label>
                    <input type="text" class="input-text radius" placeholder="请输入联系电话" name="tel" id="tel"/>
                </div>
            </div>
        </form>
        <div class="clearfix search-btns btn-div">
            <input type="button" class="btn btn-primary query-btn btn-secondary float-left mr-4" value="查 询" />
            <input type="button" class="btn btn-primary btn-secondary float-left mr-4" value="修改" id="edit">
        </div>
    </div>

    <!-- 列表 -->
    <div class="container clearfix" style="height: 80%;padding-top: 10px;">
        <div class="col-md-6 pr-20 border-right">
            <h4 class="pl-10 border-left-blue">帮扶负责人</h4>
            <div class="table-scroll2">
                <table class="table table-border table-bordered">
                    <thead class="text-c row cl table-bgcolor-gary" id="thead">                  
                    <tr>
                        <th></th>
                        <th>序号</th>
                        <th>责任人编号</th>
                        <th>姓名</th>
                        <th>性别</th>
                        <th>证件号码</th>
                        <th>职务级别</th>
                        <th>所属单位</th>
                        <th>政治面貌</th>
                        <th>技术特长</th>
                        <th>联系电话</th>
                        <th>修改人</th>
                        <th>修改时间</th>
                    </tr>
                    </thead>
                    <tbody class="text-c row cl" id="tbody1"></tbody>
                </table>
            </div>
            <div class="page pt-10 clearfix h-8p">
                <div class="f-l fs-08r" style="white-space: nowrap;" id="pageContainer1"></div>
                <div class="f-r page-div w-37p h-20" id="pageBtn1">
                    <input type="button" value="首页" class="page-btn" id="firstPage1">
                    <input type="button" value="上一页" class="page-btn" id="prevPage1">
                    <input type="button" value="下一页" class="page-btn" id="nextPage1">
                    <input type="button" value="尾页" class="page-btn" id="lastPage1">
                </div>
            </div>
        </div>
        <div class="col-md-6 pl-20">
            <h4 class="pl-10 border-left-blue">帮扶单位</h4>
            <div class="table-scroll2">
                <table class="table table-border table-bordered">
                    <thead class="text-c row cl table-bgcolor-gary" id="thead">
                    <tr>
                        <th>序号</th>
                        <th>行政区划</th>
                        <th>帮扶单位名称</th>
                        <th>帮扶单位类型</th>
                        <th>隶属关系</th>
                        <th>联系电话</th>
                        <th>联系人姓名</th>
                        <th>联系人电话</th>
                        <th>联系人地址</th>
                        <th>邮政编码</th>
                        <th>电子邮箱</th>  
                    </tr>
                    </thead>
                    <tbody class="text-c row cl" id="tbody2"></tbody>
                </table>
            </div>
            <div class="page pt-10 clearfix">
                <div class="f-r" id="layerPage2"> </div>
            </div>
        </div>
    </div>
    <div class="clearfix">
        <div class="f-l"></div>
    </div>
</div>

<div class="pt-10" id="add" style="height: 90%"></div>

<script id="list1" type="text/x-handlebars-template">
    \{{#each resultList}}
    <tr>
        <td>
          <input type="radio" name="radio" value="" data-id="\{{id}}">
        </td>
        <td>\{{Math @index '+' '1'}}</td>
        <td>\{{duty_id}}</td>
        <td>\{{name}}</td>
        <td>\{{sex}}</td>
        <td>\{{ID_number}}</td>
        <td>\{{Job_level}}</td>
        <td>\{{Unit_name}}</td>
        <td>\{{face}}</td>
        <td>\{{technical}}</td>
        <td>\{{telephone_number}}</td>
        <td>\{{Modifier}}</td>
        <td>\{{timestampToDateString update_time}}</td>
    </tr>
    \{{/each}}
</script>
<!-- 帮扶单位 -->
<script id="list2" type="text/x-handlebars-template">
    \{{#each result}}
    <tr>
        <td>\{{Math @index '+' '1'}}</td>
        <td>\{{province}}\{{city}}\{{county}}\{{country}}</td>
        <td>\{{unitName}}</td>
        <td>\{{unitType}}</td>
        <td>\{{affiliation}}</td>
        <td>\{{tel}}</td>
        <td>\{{contacts}}</td>
        <td>\{{ContactTel}}</td>
        <td>\{{address}}</td>
        <td>\{{postCode}}</td>
        <td>\{{mail}}</td>
    </tr>
    \{{/each}}
</script>

<!-- localHbs -->
<script id="list3" type="text/x-handlebars-template">
    <div class="row cl searchBox">
        <form class="form form-horizontal responsive" id="unitSearchForm" novalidate="novalidate">
            <div class="clearfix">
                <div class="conditionBox col-sm-2">
                    <label for="">所在省:</label>
                    <div class="formControls">
                        <select class="select-box select radius" size="1" id="province" value="">
                            <option value="河北省" readOnly>河北省</option>
                        </select>
                    </div>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">所在市:</label>
                    <div class="formControls">
                        <select class="select-box select radius" size="1" id="city" value="">
                            <option value="邯郸市" readOnly>邯郸市</option>
                        </select>
                    </div>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">所在县:</label>
                    <div class="formControls">
                        <select class="select-box select radius" size="1" id="cty" value="">
                            <option value="魏县" readOnly>魏县</option>
                        </select>
                    </div>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">所在乡:</label>
                    <div class="formControls">
                        <select class="select-box select radius" size="1" id="cry" value="">
                            <option value="">请选择</option>
                        </select>
                        <input type="hidden" value="" name="cry" id="h-cry"/>
                    </div>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="">单位名称:</label>
                    <input type="text" class="input-text radius" placeholder="请输入帮扶单位名称" name="unitName" id="hlepUnitName"/>
                </div>

            </div>
            <div class="clearfix" style="margin-left: 40px">
                <input type="button" class="btn btn-primary size-L queryBtn" value="查 询"/>
            </div>
        </form>
    </div>

    <div class="pl-40 pr-40 " style="height: 70%">
        <h4 class="pl-10 border-left-blue">单位信息</h4>
        <div class="table-scroll2">
            <form action="" id="all-unit">
                <table class="table table-border table-bordered">
                    <thead class="text-c row cl table-bgcolor-gary" id="thead">
                        <tr>
                            <th></th>
                            <th>序号</th>
                            <th>行政区划</th>
                            <th>帮扶单位名称</th>
                            <th>帮扶单位类型</th>
                            <th>隶属关系</th>
                            <th>联系电话</th>
                            <th>联系人姓名</th>
                            <th>联系人电话</th>
                            <th>联系人地址</th>
                            <th>邮政编码</th>
                            <th>电子邮箱</th>
                        </tr>
                    </thead>
                    <tbody class="text-c row cl" id="tbody3"></tbody>
                </table>
            </form>
        </div>
        <div class="page pt-10 clearfix">
            <div class="f-l" style="white-space: nowrap;" id="pageContainer"></div>
            <div class="f-r" id="pageBtn">
                <input type="button" value="首页" class="page-btn" id="firstPage">
                <input type="button" value="上一页" class="page-btn" id="prevPage">
                <input type="button" value="下一页" class="page-btn" id="nextPage">
                <input type="button" value="尾页" class="page-btn" id="lastPage">
            </div>
        </div>
    </div>
    <div style="text-align: center;">
        <button type="button" class="btn btn-secondary size-L save-btn">保存</button>
    </div>
</script>
<!-- 修改所属单位列表展示 -->
<script id="list4" type="text/x-handlebars-template">
        \{{#each resultList}}
        <tr>
            <td><input type="radio" name="HELP_UNIT" value="\{{id}}" data-unitName="\{{unitName}}"></td>
            <td>\{{Math @index '+' '1'}}</td>
            <td>\{{province}}\{{city}}\{{county}}</td>
            <td>\{{unitName}}</td>
            <td>\{{unitType}}</td>
            <td>\{{affiliation}}</td>
            <td>\{{tel}}</td>
            <td>\{{contacts}}</td>
            <td>\{{ContactTel}}</td>
            <td>\{{address}}</td>
            <td>\{{postCode}}</td>
            <td>\{{mail}}</td>            
        \{{/each}}
    </form>
</script>
<script id="page" type="text/x-handlebars-template">
    <span>共有\{{rowCount}}条记录，</span>
    <label>每页行数：</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo1" id="pageSize">
            <option value="10" selected>10</option>
            <option value="20">20</option>
            <option value="50">50</option>
            <option value="100">100</option>
            <option value="200">200</option>
            <option value="300">300</option>
        </select>
    </span>
    <label>当前第</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo1" id="pageCount">
            \{{#each pageCount}}
            <option value="\{{pageCount}}">\{{pageCount}}</option>
            \{{/each}}
        </select>
    </span>
    <span>页</span>
</script>
<script id="page1" type="text/x-handlebars-template">
    <span>共有\{{rowCount}}条记录，</span>
    <label for="ipt2">每页行数：</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo1" id="pageSize1">
            <option value="10" selected>10</option>
            <option value="20">20</option>
            <option value="50">50</option>
            <option value="100">100</option>
            <option value="200">200</option>
            <option value="300">300</option>
        </select>
    </span>
    <label for="ipt2">当前第</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo1" id="pageCount1">
            \{{#each pageCount}}
            <option value="\{{pageCount}}">\{{pageCount}}</option>
            \{{/each}}
        </select>
    </span>
    <span>页</span>
</script>
<script>
    new guardianMng();
</script>